package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.AgentiaPerformanceVerifyHistory;
import com.zhijian.medical.entity.vo.request.AgentiaPerformanceVerifyHistorySearchVo;
import com.zhijian.medical.entity.vo.response.AgentiaPerformanceVerifyHistoryVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 试剂-性能验证结果报告 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2023-07-21 14:31:10
 */
public interface AgentiaPerformanceVerifyHistoryService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    AgentiaPerformanceVerifyHistory selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    AgentiaPerformanceVerifyHistoryVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param agentiaPerformanceVerifyHistory
     * @return
     */
    Long insert(AgentiaPerformanceVerifyHistory agentiaPerformanceVerifyHistory);

    /**
     * 更改
     *
     * @param agentiaPerformanceVerifyHistory
     * @return
     */
    boolean update(AgentiaPerformanceVerifyHistory agentiaPerformanceVerifyHistory);

    /**
     * 动态修改
     *
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(AgentiaPerformanceVerifyHistory record);

    /**
     * 总数
     *
     * @param agentiaPerformanceVerifyHistorySearchVo
     * @return
     */
    Integer count(AgentiaPerformanceVerifyHistorySearchVo agentiaPerformanceVerifyHistorySearchVo);

    /**
     * 列表
     *
     * @param agentiaPerformanceVerifyHistorySearchVo
     * @return
     */
    List<AgentiaPerformanceVerifyHistoryVo> selectList(AgentiaPerformanceVerifyHistorySearchVo agentiaPerformanceVerifyHistorySearchVo);

    /**
     * 分页查询
     *
     * @param agentiaPerformanceVerifyHistorySearchVo
     * @return
     */
    Page<AgentiaPerformanceVerifyHistoryVo> selectPage(AgentiaPerformanceVerifyHistorySearchVo agentiaPerformanceVerifyHistorySearchVo);

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities 实例对象列表
     * @return 影响行数
     */
    boolean insertBatch(List<AgentiaPerformanceVerifyHistory> entities);

    /**
     * 查询出最新数据的code
     *
     * @return
     */
    String selectMaxCode();

    /**
     * 生成下一个编码
     *
     * @return
     */
    String createNextCode();
}